layui.use(['form','layer','table','laytpl','tree'],function(){
    var form = layui.form,
        layer = parent.layer === undefined ? layui.layer : top.layer,
        $ = layui.jquery,
        table = layui.table,
        laytpl = layui.laytpl,
        tree = layui.tree;



//渲染tree
    var inst1 = tree.render({
        elem: '#test1'  //绑定元素
        ,data: [{
            title: '江西' //一级菜单
            ,children: [{
                title: '南昌' //二级菜单
                ,children: [{
                    title: '高新区' //三级菜单
                    //…… //以此类推，可无限层级
                }]
            }]
        },{
            title: '陕西' //一级菜单
            ,children: [{
                title: '西安' //二级菜单
            }]
        }]
    });


})
